package com.fenghongzhang.kotlin1903.mvvm

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.fenghongzhang.kotlin1903.R
import kotlinx.android.synthetic.main.food_layout.view.*

class FoodAdapter(layouId:Int,data:MutableList<Data>) : BaseQuickAdapter<Data,BaseViewHolder>(layouId,data){

    override fun convert(helper: BaseViewHolder, item: Data) {
        helper.setText(R.id.food_title,item.title)
    }

}